examples/example-11 Scatter with point.type/server.R

library(shiny)
library(ECharts2Shiny)



# Prepare sample data for plotting ---------------------------------------

dat <- data.frame(x = iris$Sepal.Length,
                  y = iris$Sepal.Width,
                  group = iris$Species)



shinyServer(function(input, output) {

  # Call functions from ECharts2Shiny to render charts

  # Scatter plot

  renderScatter("test_scatter", data = dat,
                point.type = c('diamond', 'rect', 'triangle'))

  }
  )
XD-DENG/ECharts2Shiny documentation built on Oct. 8, 2020, 10:51 a.m.